package se.opendataexchange.simulator;

import java.util.Date;

import se.opendataexchange.common.AddressValue;

public abstract class FunctionGenerator implements Runnable{
	AddressValue val;
	long interval;
	
	public FunctionGenerator(AddressValue val, long interval) {
		super();
		this.val = val;
		this.interval = interval;
		
	}
	
	public void run(){
		val.newData(getValue(), new Date());		
	}

	protected abstract Object getValue();
}
